package com.dong.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;

public class MyApplicationListenerAnnotation{
    @EventListener(ApplicationEvent.class)
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("MyApplicationListener   annotation  ...");
    }
}
